﻿namespace WinForms.ControlList.Finance
{
    using Bll.Procurement;
    using Bll.Supplier;
    using Bll.Systems;
    using Library;
    using Microsoft.Office.Interop.Excel;
    using Model.Systems;
    using PublicStaticClass;
    using System;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;
    using System.Threading;
    using System.Windows.Forms;
    using WinForms;
    using WinForms.ControlList.Supplier;
    using WinForms.Properties;

    public class FrmProcurementStatList : Form
    {
        private DataGridViewTextBoxColumn AllMoney;
        private DataGridViewTextBoxColumn AllMoney1;
        private DataGridViewTextBoxColumn Amount;
        private DataGridViewTextBoxColumn AmoutMoney;
        private DataGridViewTextBoxColumn AmoutUnit;
        private System.Windows.Forms.Button btn_BuildProExcel;
        private System.Windows.Forms.Button btn_BuildProMan;
        private System.Windows.Forms.Button btn_PrintJinHuo;
        private System.Windows.Forms.Button btn_PrintProMan;
        private System.Windows.Forms.Button btn_RiBaoPrint;
        private System.Windows.Forms.Button btnSearch;
        private System.Windows.Forms.Button btnSearchHidden;
        private System.Windows.Forms.Button btnSuppBuildExcel;
        private DataGridViewTextBoxColumn CommBuyId;
        private DataGridViewTextBoxColumn CommName;
        private IContainer components = null;
        private DataGridViewTextBoxColumn CreateTime;
        private DataGridViewTextBoxColumn CreateTime1;
        private DataGridViewTextBoxColumn CumulativeMoney;
        private DataGridView DataGridList;
        private DataGridView DataGridListSuppList;
        private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;
        private DataGridView DataUserList;
        private DataGridViewTextBoxColumn DlName;
        private ComboBoxNew drp_Supper;
        private DataGridViewTextBoxColumn Features;
        private DataGridViewTextBoxColumn IDDocuments;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label lbl_Idcoument;
        private System.Windows.Forms.Label lblSalesWhere;
        private System.Windows.Forms.Label lblsupperWhere;
        private System.Windows.Forms.Label lblTitle;
        private System.Windows.Forms.Label lblWhere;
        private DataGridViewTextBoxColumn LinkMan;
        private DataGridViewTextBoxColumn MonthMoney;
        private DataGridViewTextBoxColumn MonthMoney1;
        private DataGridViewPrinter MyDataGridViewPrinter;
        private PrintDocument MyPrintDocument;
        private Navigator navigator_Page;
        private Navigator navigator_Page1;
        private Navigator navigator_Page2;
        private DataGridViewTextBoxColumn OutstMoney;
        private DataGridViewTextBoxColumn PaidMoney;
        private Panel pan_AllPanel;
        private Panel pan_AllPlanes;
        private Panel pan_Bottoms;
        private Panel pan_Dock;
        private Panel pan_DockBottom;
        private Panel pan_DockLeft;
        private Panel pan_DockRight;
        private Panel pan_Lefts;
        private Panel pan_Rights;
        private Panel pan_Top;
        private Panel pan_TopJianGe;
        private Panel pan_TopLeft;
        private Panel pan_TopRight;
        private Panel pan_ZhongJian;
        private Panel pane_TopT;
        private Panel panel1;
        private Panel panel10;
        private Panel panel11;
        private Panel panel12;
        private Panel panel13;
        private Panel panel14;
        private Panel panel15;
        private Panel panel16;
        private Panel panel17;
        private Panel panel18;
        private Panel panel19;
        private Panel panel2;
        private Panel panel20;
        private Panel panel21;
        private Panel panel22;
        private Panel panel23;
        private Panel panel24;
        private Panel panel25;
        private Panel panel26;
        private Panel panel27;
        private Panel panel28;
        private Panel panel29;
        private Panel panel3;
        private Panel panel30;
        private Panel panel31;
        private Panel panel32;
        private Panel panel33;
        private Panel panel34;
        private Panel panel35;
        private Panel panel36;
        private Panel panel37;
        private Panel panel38;
        private Panel panel39;
        private Panel panel4;
        private Panel panel40;
        private Panel panel41;
        private Panel panel42;
        private Panel panel5;
        private Panel panel6;
        private Panel panel7;
        private Panel panel8;
        private Panel panel9;
        private Panel PlSearch;
        private DataGridViewTextBoxColumn ProcuMan;
        private SaveFileDialog saveFileDialog;
        private SaveFileDialog saveFileDialogProMan;
        private SaveFileDialog saveFileDialogSupp;
        private DataGridViewTextBoxColumn SupplierId;
        private DataGridViewTextBoxColumn SupplierName;
        private DataGridViewTextBoxColumn SupplierNum;
        private TabControl tabControl1;
        private TabPage tabPage1;
        private TabPage tabPage2;
        private TabPage tabPage3;
        private DataGridViewTextBoxColumn Tel;
        private System.Windows.Forms.TextBox txt_IdDocument;
        private DataGridViewTextBoxColumn UserId;
        private System.Windows.Forms.Label userlblWhere;
        private DataGridViewTextBoxColumn UserName;
        private DataGridViewTextBoxColumn YearMoney;
        private DataGridViewTextBoxColumn YearMoney1;

        public FrmProcurementStatList()
        {
            this.InitializeComponent();
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            this.SuppLoad();
            this.ProcurementLoad();
            this.SuppDataLoad();
            this.UserDataLoad();
            this.InitPage();
        }

        private void btn_BuildProExcel_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                System.Data.DataTable dt = ProcurementCommBuyBll.SelectData(this.lblWhere.Text);
                dt.Columns.Remove("CommBuyId");
                dt.Columns.Add("CommBuyId");
                int num = 1;
                foreach (DataRow row in dt.Rows)
                {
                    row["CommBuyId"] = num;
                    num++;
                }
                BuildNewExcel.outPutExcel(this.DataGridList, dt, this.saveFileDialog.FileName);
                if (MessageBox.Show("采购分析报表生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
                {
                    Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialog.FileName);
                    application.Visible = true;
                }
            }
        }

        private void btn_BuildProMan_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialogProMan.ShowDialog() == DialogResult.OK)
            {
                System.Data.DataTable dt = UserBll.SearchData(this.userlblWhere.Text);
                int num = 1;
                dt.Columns.Remove("UserId");
                dt.Columns.Add("UserId");
                foreach (DataRow row in dt.Rows)
                {
                    row["UserId"] = num;
                    num++;
                }
                BuildNewExcel.outPutExcel(this.DataUserList, dt, this.saveFileDialogProMan.FileName);
                if (MessageBox.Show("采购员统计报表生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
                {
                    Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                    Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialogProMan.FileName);
                    application.Visible = true;
                }
            }
        }

        private void btn_PrintJinHuo_Click(object sender, EventArgs e)
        {
            if (this.SetupTheJinHuoTongJiPrinting())
            {
                System.Data.DataTable table = ProcurementCommBuyBll.SelectData(this.lblWhere.Text);
                table.Columns.Remove("CommBuyId");
                table.Columns.Add("CommBuyId");
                int num = 1;
                foreach (DataRow row in table.Rows)
                {
                    row["CommBuyId"] = num;
                    num++;
                }
                this.DataGridList.DataSource = table;
                new PrintPreviewDialog { Document = this.MyPrintDocument }.ShowDialog();
                this.ProcurementLoad();
            }
        }

        private void btn_PrintProMan_Click(object sender, EventArgs e)
        {
            if (this.SetupTheProManPrinting())
            {
                System.Data.DataTable table = UserBll.SearchData(this.userlblWhere.Text);
                int num = 1;
                table.Columns.Remove("UserId");
                table.Columns.Add("UserId");
                foreach (DataRow row in table.Rows)
                {
                    row["UserId"] = num;
                    num++;
                }
                this.DataUserList.DataSource = table;
                new PrintPreviewDialog { Document = this.MyPrintDocument }.ShowDialog();
                this.UserDataLoad();
            }
        }

        private void btn_RiBaoPrint_Click(object sender, EventArgs e)
        {
            if (this.SetupTheSuppPrinting())
            {
                System.Data.DataTable table = SupplierBll.SearchData(this.lblsupperWhere.Text);
                this.DataGridListSuppList.DataSource = table;
                new PrintPreviewDialog { Document = this.MyPrintDocument }.ShowDialog();
                this.SuppDataLoad();
            }
        }

        private void btnSalesSearch_Click(object sender, EventArgs e)
        {
            if (this.txt_IdDocument.Text != "")
            {
                this.lblWhere.Text = this.lblWhere.Text + " and IDDocuments like '%" + this.txt_IdDocument.Text + "%'";
            }
            if (this.drp_Supper.SelectValueNew != "")
            {
                this.lblWhere.Text = this.lblWhere.Text + " and SupplierId=" + this.drp_Supper.SelectValueNew;
            }
            this.ProcurementLoad();
        }

        private void btnSalesSearchHidden_Click(object sender, EventArgs e)
        {
            if (this.PlSearch.Visible)
            {
                this.btnSearchHidden.Text = "显示查询";
                this.PlSearch.Visible = false;
            }
            else
            {
                this.btnSearchHidden.Text = "隐藏查询";
                this.PlSearch.Visible = true;
            }
        }

        private void btnSuppBuildExcel_Click(object sender, EventArgs e)
        {
            if (this.saveFileDialogSupp.ShowDialog() == DialogResult.OK)
            {
                System.Data.DataTable table = SupplierBll.SearchData(this.lblsupperWhere.Text);
                ParameterizedThreadStart start = new ParameterizedThreadStart(this.BuildExcel);
                Thread thread = new Thread(start);
                object parameter = table;
                thread.Start(parameter);
            }
        }

        public void BuildExcel(object dTable)
        {
            System.Data.DataTable dt = (System.Data.DataTable) dTable;
            BuildNewExcel.outPutExcel(this.DataGridListSuppList, dt, this.saveFileDialogSupp.FileName);
            if (MessageBox.Show("供应商报表生成成功,是否现在就打开?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk) == DialogResult.OK)
            {
                Microsoft.Office.Interop.Excel.Application application = new ApplicationClass();
                Workbook workbook = application.Application.Workbooks.Add(this.saveFileDialogSupp.FileName);
                application.Visible = true;
            }
        }

        private void DataGridListSuppList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex != -1)
            {
                FrmSupplierVeiw veiw = new FrmSupplierVeiw(int.Parse(this.DataGridListSuppList.Rows[e.RowIndex].Cells[0].Value.ToString()));
                if (DialogResult.OK == veiw.ShowDialog())
                {
                }
                veiw.Dispose();
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            DataGridViewCellStyle style = new DataGridViewCellStyle();
            DataGridViewCellStyle style2 = new DataGridViewCellStyle();
            DataGridViewCellStyle style3 = new DataGridViewCellStyle();
            DataGridViewCellStyle style4 = new DataGridViewCellStyle();
            DataGridViewCellStyle style5 = new DataGridViewCellStyle();
            DataGridViewCellStyle style6 = new DataGridViewCellStyle();
            DataGridViewCellStyle style7 = new DataGridViewCellStyle();
            DataGridViewCellStyle style8 = new DataGridViewCellStyle();
            DataGridViewCellStyle style9 = new DataGridViewCellStyle();
            DataGridViewCellStyle style10 = new DataGridViewCellStyle();
            DataGridViewCellStyle style11 = new DataGridViewCellStyle();
            DataGridViewCellStyle style12 = new DataGridViewCellStyle();
            DataGridViewCellStyle style13 = new DataGridViewCellStyle();
            DataGridViewCellStyle style14 = new DataGridViewCellStyle();
            DataGridViewCellStyle style15 = new DataGridViewCellStyle();
            DataGridViewCellStyle style16 = new DataGridViewCellStyle();
            DataGridViewCellStyle style17 = new DataGridViewCellStyle();
            DataGridViewCellStyle style18 = new DataGridViewCellStyle();
            DataGridViewCellStyle style19 = new DataGridViewCellStyle();
            DataGridViewCellStyle style20 = new DataGridViewCellStyle();
            DataGridViewCellStyle style21 = new DataGridViewCellStyle();
            DataGridViewCellStyle style22 = new DataGridViewCellStyle();
            DataGridViewCellStyle style23 = new DataGridViewCellStyle();
            DataGridViewCellStyle style24 = new DataGridViewCellStyle();
            DataGridViewCellStyle style25 = new DataGridViewCellStyle();
            DataGridViewCellStyle style26 = new DataGridViewCellStyle();
            DataGridViewCellStyle style27 = new DataGridViewCellStyle();
            DataGridViewCellStyle style28 = new DataGridViewCellStyle();
            this.pan_DockLeft = new Panel();
            this.pan_Dock = new Panel();
            this.pan_AllPanel = new Panel();
            this.pan_AllPlanes = new Panel();
            this.tabControl1 = new TabControl();
            this.tabPage1 = new TabPage();
            this.DataGridList = new DataGridView();
            this.CommBuyId = new DataGridViewTextBoxColumn();
            this.IDDocuments = new DataGridViewTextBoxColumn();
            this.CommName = new DataGridViewTextBoxColumn();
            this.DlName = new DataGridViewTextBoxColumn();
            this.Amount = new DataGridViewTextBoxColumn();
            this.AmoutUnit = new DataGridViewTextBoxColumn();
            this.AmoutMoney = new DataGridViewTextBoxColumn();
            this.AllMoney = new DataGridViewTextBoxColumn();
            this.ProcuMan = new DataGridViewTextBoxColumn();
            this.SupplierName = new DataGridViewTextBoxColumn();
            this.CreateTime = new DataGridViewTextBoxColumn();
            this.Features = new DataGridViewTextBoxColumn();
            this.PlSearch = new Panel();
            this.panel17 = new Panel();
            this.drp_Supper = new ComboBoxNew();
            this.panel18 = new Panel();
            this.label2 = new System.Windows.Forms.Label();
            this.panel22 = new Panel();
            this.txt_IdDocument = new System.Windows.Forms.TextBox();
            this.panel23 = new Panel();
            this.lbl_Idcoument = new System.Windows.Forms.Label();
            this.panel13 = new Panel();
            this.panel10 = new Panel();
            this.panel12 = new Panel();
            this.lblSalesWhere = new System.Windows.Forms.Label();
            this.lblWhere = new System.Windows.Forms.Label();
            this.panel11 = new Panel();
            this.navigator_Page = new Navigator();
            this.panel4 = new Panel();
            this.panel8 = new Panel();
            this.panel1 = new Panel();
            this.panel7 = new Panel();
            this.btn_PrintJinHuo = new System.Windows.Forms.Button();
            this.panel16 = new Panel();
            this.btn_BuildProExcel = new System.Windows.Forms.Button();
            this.panel19 = new Panel();
            this.btnSearch = new System.Windows.Forms.Button();
            this.panel20 = new Panel();
            this.btnSearchHidden = new System.Windows.Forms.Button();
            this.panel3 = new Panel();
            this.panel2 = new Panel();
            this.pan_TopJianGe = new Panel();
            this.tabPage2 = new TabPage();
            this.DataGridListSuppList = new DataGridView();
            this.SupplierId = new DataGridViewTextBoxColumn();
            this.SupplierNum = new DataGridViewTextBoxColumn();
            this.dataGridViewTextBoxColumn1 = new DataGridViewTextBoxColumn();
            this.LinkMan = new DataGridViewTextBoxColumn();
            this.Tel = new DataGridViewTextBoxColumn();
            this.MonthMoney = new DataGridViewTextBoxColumn();
            this.YearMoney = new DataGridViewTextBoxColumn();
            this.CumulativeMoney = new DataGridViewTextBoxColumn();
            this.PaidMoney = new DataGridViewTextBoxColumn();
            this.OutstMoney = new DataGridViewTextBoxColumn();
            this.panel32 = new Panel();
            this.panel25 = new Panel();
            this.panel26 = new Panel();
            this.lblsupperWhere = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.panel31 = new Panel();
            this.navigator_Page1 = new Navigator();
            this.panel24 = new Panel();
            this.panel21 = new Panel();
            this.panel6 = new Panel();
            this.panel28 = new Panel();
            this.btn_RiBaoPrint = new System.Windows.Forms.Button();
            this.panel27 = new Panel();
            this.btnSuppBuildExcel = new System.Windows.Forms.Button();
            this.panel29 = new Panel();
            this.panel30 = new Panel();
            this.panel5 = new Panel();
            this.tabPage3 = new TabPage();
            this.DataUserList = new DataGridView();
            this.UserId = new DataGridViewTextBoxColumn();
            this.UserName = new DataGridViewTextBoxColumn();
            this.MonthMoney1 = new DataGridViewTextBoxColumn();
            this.YearMoney1 = new DataGridViewTextBoxColumn();
            this.AllMoney1 = new DataGridViewTextBoxColumn();
            this.CreateTime1 = new DataGridViewTextBoxColumn();
            this.panel42 = new Panel();
            this.panel39 = new Panel();
            this.panel40 = new Panel();
            this.userlblWhere = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.panel41 = new Panel();
            this.navigator_Page2 = new Navigator();
            this.panel38 = new Panel();
            this.panel37 = new Panel();
            this.panel15 = new Panel();
            this.panel34 = new Panel();
            this.btn_PrintProMan = new System.Windows.Forms.Button();
            this.panel33 = new Panel();
            this.btn_BuildProMan = new System.Windows.Forms.Button();
            this.panel35 = new Panel();
            this.panel36 = new Panel();
            this.panel14 = new Panel();
            this.panel9 = new Panel();
            this.pan_Rights = new Panel();
            this.pan_Lefts = new Panel();
            this.pan_Bottoms = new Panel();
            this.pane_TopT = new Panel();
            this.pan_DockBottom = new Panel();
            this.pan_DockRight = new Panel();
            this.pan_Top = new Panel();
            this.pan_ZhongJian = new Panel();
            this.lblTitle = new System.Windows.Forms.Label();
            this.pan_TopRight = new Panel();
            this.pan_TopLeft = new Panel();
            this.saveFileDialog = new SaveFileDialog();
            this.saveFileDialogSupp = new SaveFileDialog();
            this.saveFileDialogProMan = new SaveFileDialog();
            this.MyPrintDocument = new PrintDocument();
            this.pan_Dock.SuspendLayout();
            this.pan_AllPanel.SuspendLayout();
            this.pan_AllPlanes.SuspendLayout();
            this.tabControl1.SuspendLayout();
            this.tabPage1.SuspendLayout();
            ((ISupportInitialize) this.DataGridList).BeginInit();
            this.PlSearch.SuspendLayout();
            this.panel17.SuspendLayout();
            this.panel18.SuspendLayout();
            this.panel22.SuspendLayout();
            this.panel23.SuspendLayout();
            this.panel10.SuspendLayout();
            this.panel12.SuspendLayout();
            this.panel11.SuspendLayout();
            this.panel1.SuspendLayout();
            this.panel7.SuspendLayout();
            this.panel16.SuspendLayout();
            this.panel19.SuspendLayout();
            this.panel20.SuspendLayout();
            this.tabPage2.SuspendLayout();
            ((ISupportInitialize) this.DataGridListSuppList).BeginInit();
            this.panel25.SuspendLayout();
            this.panel26.SuspendLayout();
            this.panel31.SuspendLayout();
            this.panel6.SuspendLayout();
            this.panel28.SuspendLayout();
            this.panel27.SuspendLayout();
            this.tabPage3.SuspendLayout();
            ((ISupportInitialize) this.DataUserList).BeginInit();
            this.panel39.SuspendLayout();
            this.panel40.SuspendLayout();
            this.panel41.SuspendLayout();
            this.panel15.SuspendLayout();
            this.panel34.SuspendLayout();
            this.panel33.SuspendLayout();
            this.pan_Top.SuspendLayout();
            this.pan_ZhongJian.SuspendLayout();
            base.SuspendLayout();
            this.pan_DockLeft.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockLeft.Dock = DockStyle.Left;
            this.pan_DockLeft.Location = new System.Drawing.Point(0, 0);
            this.pan_DockLeft.Name = "pan_DockLeft";
            this.pan_DockLeft.Size = new Size(1, 0x1f9);
            this.pan_DockLeft.TabIndex = 0;
            this.pan_Dock.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.pan_Dock.Controls.Add(this.pan_AllPanel);
            this.pan_Dock.Controls.Add(this.pan_DockBottom);
            this.pan_Dock.Controls.Add(this.pan_DockRight);
            this.pan_Dock.Controls.Add(this.pan_DockLeft);
            this.pan_Dock.Dock = DockStyle.Fill;
            this.pan_Dock.Location = new System.Drawing.Point(0, 0x20);
            this.pan_Dock.Name = "pan_Dock";
            this.pan_Dock.Size = new Size(0x3cb, 0x1f9);
            this.pan_Dock.TabIndex = 5;
            this.pan_AllPanel.BackColor = Color.White;
            this.pan_AllPanel.Controls.Add(this.pan_AllPlanes);
            this.pan_AllPanel.Controls.Add(this.pan_Rights);
            this.pan_AllPanel.Controls.Add(this.pan_Lefts);
            this.pan_AllPanel.Controls.Add(this.pan_Bottoms);
            this.pan_AllPanel.Controls.Add(this.pane_TopT);
            this.pan_AllPanel.Dock = DockStyle.Fill;
            this.pan_AllPanel.Location = new System.Drawing.Point(1, 0);
            this.pan_AllPanel.Name = "pan_AllPanel";
            this.pan_AllPanel.Size = new Size(0x3c9, 0x1f8);
            this.pan_AllPanel.TabIndex = 3;
            this.pan_AllPlanes.Controls.Add(this.tabControl1);
            this.pan_AllPlanes.Controls.Add(this.panel9);
            this.pan_AllPlanes.Dock = DockStyle.Fill;
            this.pan_AllPlanes.Location = new System.Drawing.Point(10, 10);
            this.pan_AllPlanes.Name = "pan_AllPlanes";
            this.pan_AllPlanes.Size = new Size(0x3b5, 0x1e4);
            this.pan_AllPlanes.TabIndex = 4;
            this.tabControl1.Controls.Add(this.tabPage1);
            this.tabControl1.Controls.Add(this.tabPage2);
            this.tabControl1.Controls.Add(this.tabPage3);
            this.tabControl1.Dock = DockStyle.Fill;
            this.tabControl1.Location = new System.Drawing.Point(0, 0);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new Size(0x3b5, 0x1df);
            this.tabControl1.TabIndex = 4;
            this.tabPage1.Controls.Add(this.DataGridList);
            this.tabPage1.Controls.Add(this.PlSearch);
            this.tabPage1.Controls.Add(this.panel13);
            this.tabPage1.Controls.Add(this.panel10);
            this.tabPage1.Controls.Add(this.panel4);
            this.tabPage1.Controls.Add(this.panel8);
            this.tabPage1.Controls.Add(this.panel1);
            this.tabPage1.Controls.Add(this.pan_TopJianGe);
            this.tabPage1.Location = new System.Drawing.Point(4, 0x15);
            this.tabPage1.Name = "tabPage1";
            this.tabPage1.Padding = new Padding(3);
            this.tabPage1.Size = new Size(0x3ad, 0x1c6);
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "进货统计";
            this.tabPage1.UseVisualStyleBackColor = true;
            this.DataGridList.AllowUserToAddRows = false;
            this.DataGridList.AllowUserToDeleteRows = false;
            style.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.DataGridList.AlternatingRowsDefaultCellStyle = style;
            this.DataGridList.BackgroundColor = Color.WhiteSmoke;
            this.DataGridList.BorderStyle = BorderStyle.None;
            style2.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style2.BackColor = Color.White;
            style2.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style2.ForeColor = SystemColors.WindowText;
            style2.SelectionBackColor = SystemColors.Highlight;
            style2.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridList.ColumnHeadersDefaultCellStyle = style2;
            this.DataGridList.Columns.AddRange(new DataGridViewColumn[] { this.CommBuyId, this.IDDocuments, this.CommName, this.DlName, this.Amount, this.AmoutUnit, this.AmoutMoney, this.AllMoney, this.ProcuMan, this.SupplierName, this.CreateTime, this.Features });
            style3.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style3.BackColor = SystemColors.Window;
            style3.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style3.ForeColor = SystemColors.ControlText;
            style3.SelectionBackColor = SystemColors.Highlight;
            style3.SelectionForeColor = SystemColors.HighlightText;
            style3.WrapMode = DataGridViewTriState.False;
            this.DataGridList.DefaultCellStyle = style3;
            this.DataGridList.Dock = DockStyle.Fill;
            this.DataGridList.EnableHeadersVisualStyles = false;
            this.DataGridList.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.DataGridList.Location = new System.Drawing.Point(3, 0x48);
            this.DataGridList.Name = "DataGridList";
            style4.Alignment = DataGridViewContentAlignment.BottomCenter;
            style4.BackColor = Color.White;
            style4.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style4.ForeColor = SystemColors.WindowText;
            style4.SelectionBackColor = SystemColors.Highlight;
            style4.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridList.RowHeadersDefaultCellStyle = style4;
            style5.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.DataGridList.RowsDefaultCellStyle = style5;
            this.DataGridList.RowTemplate.Height = 0x17;
            this.DataGridList.Size = new Size(0x3a7, 0x152);
            this.DataGridList.TabIndex = 14;
            this.CommBuyId.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CommBuyId.DataPropertyName = "CommBuyId";
            style6.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style6.BackColor = Color.White;
            this.CommBuyId.DefaultCellStyle = style6;
            this.CommBuyId.HeaderText = "编号";
            this.CommBuyId.Name = "CommBuyId";
            this.CommBuyId.ReadOnly = true;
            this.CommBuyId.Visible = false;
            this.IDDocuments.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.IDDocuments.DataPropertyName = "IDDocuments";
            style7.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style7.BackColor = Color.White;
            this.IDDocuments.DefaultCellStyle = style7;
            this.IDDocuments.HeaderText = "单据编号";
            this.IDDocuments.Name = "IDDocuments";
            this.IDDocuments.ReadOnly = true;
            this.CommName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CommName.DataPropertyName = "CommName";
            style8.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style8.BackColor = Color.White;
            this.CommName.DefaultCellStyle = style8;
            this.CommName.HeaderText = "商品名称";
            this.CommName.Name = "CommName";
            this.CommName.ReadOnly = true;
            this.DlName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.DlName.DataPropertyName = "DlName";
            style9.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style9.BackColor = Color.White;
            this.DlName.DefaultCellStyle = style9;
            this.DlName.HeaderText = "所在库位";
            this.DlName.Name = "DlName";
            this.DlName.ReadOnly = true;
            this.Amount.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.Amount.DataPropertyName = "Amount";
            this.Amount.HeaderText = "数量";
            this.Amount.Name = "Amount";
            this.AmoutUnit.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.AmoutUnit.DataPropertyName = "AmoutUnit";
            style10.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style10.BackColor = Color.White;
            this.AmoutUnit.DefaultCellStyle = style10;
            this.AmoutUnit.HeaderText = "单位";
            this.AmoutUnit.Name = "AmoutUnit";
            this.AmoutUnit.ReadOnly = true;
            this.AmoutMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.AmoutMoney.DataPropertyName = "AmoutMoney";
            this.AmoutMoney.HeaderText = "进货价";
            this.AmoutMoney.Name = "AmoutMoney";
            this.AllMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.AllMoney.DataPropertyName = "AllMoney";
            this.AllMoney.HeaderText = "总价";
            this.AllMoney.Name = "AllMoney";
            this.ProcuMan.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.ProcuMan.DataPropertyName = "ProcuMan";
            this.ProcuMan.HeaderText = "进货人";
            this.ProcuMan.Name = "ProcuMan";
            this.SupplierName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.SupplierName.DataPropertyName = "SupplierName";
            this.SupplierName.HeaderText = "供应商";
            this.SupplierName.Name = "SupplierName";
            this.CreateTime.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CreateTime.DataPropertyName = "CreateTime";
            this.CreateTime.HeaderText = "进货时间";
            this.CreateTime.Name = "CreateTime";
            this.Features.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.Features.DataPropertyName = "Features";
            this.Features.HeaderText = "商品特征";
            this.Features.Name = "Features";
            this.PlSearch.Controls.Add(this.panel17);
            this.PlSearch.Controls.Add(this.panel18);
            this.PlSearch.Controls.Add(this.panel22);
            this.PlSearch.Controls.Add(this.panel23);
            this.PlSearch.Dock = DockStyle.Top;
            this.PlSearch.Location = new System.Drawing.Point(3, 0x2d);
            this.PlSearch.Name = "PlSearch";
            this.PlSearch.Size = new Size(0x3a7, 0x1b);
            this.PlSearch.TabIndex = 13;
            this.PlSearch.Visible = false;
            this.panel17.Controls.Add(this.drp_Supper);
            this.panel17.Dock = DockStyle.Left;
            this.panel17.Location = new System.Drawing.Point(0x11c, 0);
            this.panel17.Name = "panel17";
            this.panel17.Size = new Size(0x92, 0x1b);
            this.panel17.TabIndex = 11;
            this.drp_Supper.DisplayMember = "Name";
            this.drp_Supper.DropDownStyle = ComboBoxStyle.DropDownList;
            this.drp_Supper.FormattingEnabled = true;
            this.drp_Supper.Location = new System.Drawing.Point(3, 3);
            this.drp_Supper.Name = "drp_Supper";
            this.drp_Supper.SelectValueNew = "";
            this.drp_Supper.Size = new Size(140, 20);
            this.drp_Supper.TabIndex = 0;
            this.drp_Supper.ValueMember = "Value";
            this.panel18.Controls.Add(this.label2);
            this.panel18.Dock = DockStyle.Left;
            this.panel18.Location = new System.Drawing.Point(0xd7, 0);
            this.panel18.Name = "panel18";
            this.panel18.Size = new Size(0x45, 0x1b);
            this.panel18.TabIndex = 10;
            this.label2.AutoSize = true;
            this.label2.Location = new System.Drawing.Point(0x13, 6);
            this.label2.Name = "label2";
            this.label2.Size = new Size(0x2f, 12);
            this.label2.TabIndex = 0;
            this.label2.Text = "供应商:";
            this.panel22.Controls.Add(this.txt_IdDocument);
            this.panel22.Dock = DockStyle.Left;
            this.panel22.Location = new System.Drawing.Point(0x45, 0);
            this.panel22.Name = "panel22";
            this.panel22.Size = new Size(0x92, 0x1b);
            this.panel22.TabIndex = 9;
            this.txt_IdDocument.Location = new System.Drawing.Point(5, 3);
            this.txt_IdDocument.Name = "txt_IdDocument";
            this.txt_IdDocument.Size = new Size(0x89, 0x15);
            this.txt_IdDocument.TabIndex = 0;
            this.panel23.Controls.Add(this.lbl_Idcoument);
            this.panel23.Dock = DockStyle.Left;
            this.panel23.Location = new System.Drawing.Point(0, 0);
            this.panel23.Name = "panel23";
            this.panel23.Size = new Size(0x45, 0x1b);
            this.panel23.TabIndex = 8;
            this.lbl_Idcoument.AutoSize = true;
            this.lbl_Idcoument.Location = new System.Drawing.Point(5, 6);
            this.lbl_Idcoument.Name = "lbl_Idcoument";
            this.lbl_Idcoument.Size = new Size(0x3b, 12);
            this.lbl_Idcoument.TabIndex = 0;
            this.lbl_Idcoument.Text = "单据编号:";
            this.panel13.Dock = DockStyle.Bottom;
            this.panel13.Location = new System.Drawing.Point(3, 410);
            this.panel13.Name = "panel13";
            this.panel13.Size = new Size(0x3a7, 10);
            this.panel13.TabIndex = 12;
            this.panel10.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel10.Controls.Add(this.panel12);
            this.panel10.Controls.Add(this.panel11);
            this.panel10.Dock = DockStyle.Bottom;
            this.panel10.Location = new System.Drawing.Point(3, 420);
            this.panel10.Name = "panel10";
            this.panel10.Size = new Size(0x3a7, 0x1a);
            this.panel10.TabIndex = 11;
            this.panel12.Controls.Add(this.lblSalesWhere);
            this.panel12.Controls.Add(this.lblWhere);
            this.panel12.Dock = DockStyle.Fill;
            this.panel12.Location = new System.Drawing.Point(0, 0);
            this.panel12.Name = "panel12";
            this.panel12.Size = new Size(490, 0x1a);
            this.panel12.TabIndex = 1;
            this.lblSalesWhere.AutoSize = true;
            this.lblSalesWhere.Location = new System.Drawing.Point(0x1a2, 8);
            this.lblSalesWhere.Name = "lblSalesWhere";
            this.lblSalesWhere.Size = new Size(0, 12);
            this.lblSalesWhere.TabIndex = 1;
            this.lblSalesWhere.Visible = false;
            this.lblWhere.AutoSize = true;
            this.lblWhere.Dock = DockStyle.Right;
            this.lblWhere.Location = new System.Drawing.Point(490, 0);
            this.lblWhere.Name = "lblWhere";
            this.lblWhere.Size = new Size(0, 12);
            this.lblWhere.TabIndex = 0;
            this.lblWhere.Visible = false;
            this.panel11.Controls.Add(this.navigator_Page);
            this.panel11.Dock = DockStyle.Right;
            this.panel11.Location = new System.Drawing.Point(490, 0);
            this.panel11.Name = "panel11";
            this.panel11.Size = new Size(0x1bd, 0x1a);
            this.panel11.TabIndex = 0;
            this.navigator_Page.Dock = DockStyle.Bottom;
            this.navigator_Page.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page.Name = "navigator_Page";
            this.navigator_Page.PageSize = 20;
            this.navigator_Page.RowCount = 0;
            this.navigator_Page.Size = new Size(0x1bd, 0x12);
            this.navigator_Page.TabIndex = 0;
            this.navigator_Page.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page_OnLoadViewStatus);
            this.panel4.Dock = DockStyle.Bottom;
            this.panel4.Location = new System.Drawing.Point(3, 0x1be);
            this.panel4.Name = "panel4";
            this.panel4.Size = new Size(0x3a7, 5);
            this.panel4.TabIndex = 10;
            this.panel8.Dock = DockStyle.Top;
            this.panel8.Location = new System.Drawing.Point(3, 0x25);
            this.panel8.Name = "panel8";
            this.panel8.Size = new Size(0x3a7, 8);
            this.panel8.TabIndex = 8;
            this.panel1.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel1.Controls.Add(this.panel7);
            this.panel1.Controls.Add(this.panel16);
            this.panel1.Controls.Add(this.panel19);
            this.panel1.Controls.Add(this.panel20);
            this.panel1.Controls.Add(this.panel3);
            this.panel1.Controls.Add(this.panel2);
            this.panel1.Dock = DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(3, 11);
            this.panel1.Name = "panel1";
            this.panel1.Size = new Size(0x3a7, 0x1a);
            this.panel1.TabIndex = 7;
            this.panel7.Controls.Add(this.btn_PrintJinHuo);
            this.panel7.Dock = DockStyle.Right;
            this.panel7.Location = new System.Drawing.Point(0x243, 3);
            this.panel7.Name = "panel7";
            this.panel7.Size = new Size(0x59, 20);
            this.panel7.TabIndex = 0x13;
            this.btn_PrintJinHuo.Dock = DockStyle.Right;
            this.btn_PrintJinHuo.Location = new System.Drawing.Point(14, 0);
            this.btn_PrintJinHuo.Name = "btn_PrintJinHuo";
            this.btn_PrintJinHuo.Size = new Size(0x4b, 20);
            this.btn_PrintJinHuo.TabIndex = 2;
            this.btn_PrintJinHuo.Text = "打 印";
            this.btn_PrintJinHuo.UseVisualStyleBackColor = true;
            this.btn_PrintJinHuo.Click += new EventHandler(this.btn_PrintJinHuo_Click);
            this.panel16.Controls.Add(this.btn_BuildProExcel);
            this.panel16.Dock = DockStyle.Right;
            this.panel16.Location = new System.Drawing.Point(0x29c, 3);
            this.panel16.Name = "panel16";
            this.panel16.Size = new Size(0x59, 20);
            this.panel16.TabIndex = 0x12;
            this.btn_BuildProExcel.Dock = DockStyle.Right;
            this.btn_BuildProExcel.Location = new System.Drawing.Point(14, 0);
            this.btn_BuildProExcel.Name = "btn_BuildProExcel";
            this.btn_BuildProExcel.Size = new Size(0x4b, 20);
            this.btn_BuildProExcel.TabIndex = 1;
            this.btn_BuildProExcel.Text = "生成报表";
            this.btn_BuildProExcel.UseVisualStyleBackColor = true;
            this.btn_BuildProExcel.Click += new EventHandler(this.btn_BuildProExcel_Click);
            this.panel19.Controls.Add(this.btnSearch);
            this.panel19.Dock = DockStyle.Right;
            this.panel19.Location = new System.Drawing.Point(0x2f5, 3);
            this.panel19.Name = "panel19";
            this.panel19.Size = new Size(0x59, 20);
            this.panel19.TabIndex = 0x11;
            this.btnSearch.Dock = DockStyle.Right;
            this.btnSearch.Location = new System.Drawing.Point(14, 0);
            this.btnSearch.Name = "btnSearch";
            this.btnSearch.Size = new Size(0x4b, 20);
            this.btnSearch.TabIndex = 1;
            this.btnSearch.Text = "查 询";
            this.btnSearch.UseVisualStyleBackColor = true;
            this.btnSearch.Click += new EventHandler(this.btnSalesSearch_Click);
            this.panel20.Controls.Add(this.btnSearchHidden);
            this.panel20.Dock = DockStyle.Right;
            this.panel20.Location = new System.Drawing.Point(0x34e, 3);
            this.panel20.Name = "panel20";
            this.panel20.Size = new Size(0x59, 20);
            this.panel20.TabIndex = 0x10;
            this.btnSearchHidden.Dock = DockStyle.Right;
            this.btnSearchHidden.Location = new System.Drawing.Point(14, 0);
            this.btnSearchHidden.Name = "btnSearchHidden";
            this.btnSearchHidden.Size = new Size(0x4b, 20);
            this.btnSearchHidden.TabIndex = 0;
            this.btnSearchHidden.Text = "显示查询";
            this.btnSearchHidden.UseVisualStyleBackColor = true;
            this.btnSearchHidden.Click += new EventHandler(this.btnSalesSearchHidden_Click);
            this.panel3.Dock = DockStyle.Bottom;
            this.panel3.Location = new System.Drawing.Point(0, 0x17);
            this.panel3.Name = "panel3";
            this.panel3.Size = new Size(0x3a7, 3);
            this.panel3.TabIndex = 1;
            this.panel2.Dock = DockStyle.Top;
            this.panel2.Location = new System.Drawing.Point(0, 0);
            this.panel2.Name = "panel2";
            this.panel2.Size = new Size(0x3a7, 3);
            this.panel2.TabIndex = 0;
            this.pan_TopJianGe.Dock = DockStyle.Top;
            this.pan_TopJianGe.Location = new System.Drawing.Point(3, 3);
            this.pan_TopJianGe.Name = "pan_TopJianGe";
            this.pan_TopJianGe.Size = new Size(0x3a7, 8);
            this.pan_TopJianGe.TabIndex = 5;
            this.tabPage2.Controls.Add(this.DataGridListSuppList);
            this.tabPage2.Controls.Add(this.panel32);
            this.tabPage2.Controls.Add(this.panel25);
            this.tabPage2.Controls.Add(this.panel24);
            this.tabPage2.Controls.Add(this.panel21);
            this.tabPage2.Controls.Add(this.panel6);
            this.tabPage2.Controls.Add(this.panel5);
            this.tabPage2.Location = new System.Drawing.Point(4, 0x15);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new Padding(3);
            this.tabPage2.Size = new Size(0x3ad, 0x1c6);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "供应商统计";
            this.tabPage2.UseVisualStyleBackColor = true;
            this.DataGridListSuppList.AllowUserToAddRows = false;
            this.DataGridListSuppList.AllowUserToDeleteRows = false;
            style11.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style11.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.DataGridListSuppList.AlternatingRowsDefaultCellStyle = style11;
            this.DataGridListSuppList.BackgroundColor = Color.WhiteSmoke;
            this.DataGridListSuppList.BorderStyle = BorderStyle.None;
            style12.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style12.BackColor = Color.White;
            style12.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style12.ForeColor = SystemColors.WindowText;
            style12.SelectionBackColor = SystemColors.Highlight;
            style12.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridListSuppList.ColumnHeadersDefaultCellStyle = style12;
            this.DataGridListSuppList.Columns.AddRange(new DataGridViewColumn[] { this.SupplierId, this.SupplierNum, this.dataGridViewTextBoxColumn1, this.LinkMan, this.Tel, this.MonthMoney, this.YearMoney, this.CumulativeMoney, this.PaidMoney, this.OutstMoney });
            style13.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style13.BackColor = SystemColors.Window;
            style13.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style13.ForeColor = SystemColors.ControlText;
            style13.SelectionBackColor = SystemColors.Highlight;
            style13.SelectionForeColor = SystemColors.HighlightText;
            style13.WrapMode = DataGridViewTriState.False;
            this.DataGridListSuppList.DefaultCellStyle = style13;
            this.DataGridListSuppList.Dock = DockStyle.Fill;
            this.DataGridListSuppList.EnableHeadersVisualStyles = false;
            this.DataGridListSuppList.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.DataGridListSuppList.Location = new System.Drawing.Point(3, 0x2d);
            this.DataGridListSuppList.Name = "DataGridListSuppList";
            style14.Alignment = DataGridViewContentAlignment.BottomCenter;
            style14.BackColor = Color.White;
            style14.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style14.ForeColor = SystemColors.WindowText;
            style14.SelectionBackColor = SystemColors.Highlight;
            style14.SelectionForeColor = SystemColors.HighlightText;
            this.DataGridListSuppList.RowHeadersDefaultCellStyle = style14;
            style15.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.DataGridListSuppList.RowsDefaultCellStyle = style15;
            this.DataGridListSuppList.RowTemplate.Height = 0x17;
            this.DataGridListSuppList.Size = new Size(0x3a7, 0x16d);
            this.DataGridListSuppList.TabIndex = 14;
            this.DataGridListSuppList.CellDoubleClick += new DataGridViewCellEventHandler(this.DataGridListSuppList_CellDoubleClick);
            this.SupplierId.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.SupplierId.DataPropertyName = "SupplierId";
            style16.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style16.BackColor = Color.White;
            this.SupplierId.DefaultCellStyle = style16;
            this.SupplierId.HeaderText = "供货商id";
            this.SupplierId.Name = "SupplierId";
            this.SupplierId.ReadOnly = true;
            this.SupplierId.Visible = false;
            this.SupplierNum.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.SupplierNum.DataPropertyName = "SupplierNum";
            style17.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style17.BackColor = Color.White;
            this.SupplierNum.DefaultCellStyle = style17;
            this.SupplierNum.HeaderText = "供货商代码";
            this.SupplierNum.Name = "SupplierNum";
            this.SupplierNum.ReadOnly = true;
            this.dataGridViewTextBoxColumn1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.dataGridViewTextBoxColumn1.DataPropertyName = "SupplierName";
            style18.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style18.BackColor = Color.White;
            this.dataGridViewTextBoxColumn1.DefaultCellStyle = style18;
            this.dataGridViewTextBoxColumn1.HeaderText = "供货商名字";
            this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
            this.dataGridViewTextBoxColumn1.ReadOnly = true;
            this.LinkMan.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.LinkMan.DataPropertyName = "LinkMan";
            style19.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style19.BackColor = Color.White;
            this.LinkMan.DefaultCellStyle = style19;
            this.LinkMan.HeaderText = "联系人";
            this.LinkMan.Name = "LinkMan";
            this.LinkMan.ReadOnly = true;
            this.Tel.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.Tel.DataPropertyName = "Tel";
            style20.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style20.BackColor = Color.White;
            this.Tel.DefaultCellStyle = style20;
            this.Tel.HeaderText = "联系电话";
            this.Tel.Name = "Tel";
            this.Tel.ReadOnly = true;
            this.MonthMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.MonthMoney.DataPropertyName = "MonthMoney";
            this.MonthMoney.HeaderText = "单月进货金额";
            this.MonthMoney.Name = "MonthMoney";
            this.YearMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.YearMoney.DataPropertyName = "YearMoney";
            this.YearMoney.HeaderText = "单年进货金额";
            this.YearMoney.Name = "YearMoney";
            this.CumulativeMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CumulativeMoney.DataPropertyName = "CumulativeMoney";
            style21.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style21.BackColor = Color.White;
            this.CumulativeMoney.DefaultCellStyle = style21;
            this.CumulativeMoney.HeaderText = "累计总金额";
            this.CumulativeMoney.Name = "CumulativeMoney";
            this.CumulativeMoney.ReadOnly = true;
            this.PaidMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.PaidMoney.DataPropertyName = "PaidMoney";
            style22.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style22.BackColor = Color.White;
            this.PaidMoney.DefaultCellStyle = style22;
            this.PaidMoney.HeaderText = "已付总金额";
            this.PaidMoney.Name = "PaidMoney";
            this.PaidMoney.ReadOnly = true;
            this.OutstMoney.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.OutstMoney.DataPropertyName = "OutstMoney";
            style23.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style23.BackColor = Color.White;
            this.OutstMoney.DefaultCellStyle = style23;
            this.OutstMoney.HeaderText = "未付总金额";
            this.OutstMoney.Name = "OutstMoney";
            this.OutstMoney.ReadOnly = true;
            this.panel32.Dock = DockStyle.Bottom;
            this.panel32.Location = new System.Drawing.Point(3, 410);
            this.panel32.Name = "panel32";
            this.panel32.Size = new Size(0x3a7, 10);
            this.panel32.TabIndex = 13;
            this.panel25.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel25.Controls.Add(this.panel26);
            this.panel25.Controls.Add(this.panel31);
            this.panel25.Dock = DockStyle.Bottom;
            this.panel25.Location = new System.Drawing.Point(3, 420);
            this.panel25.Name = "panel25";
            this.panel25.Size = new Size(0x3a7, 0x1a);
            this.panel25.TabIndex = 12;
            this.panel26.Controls.Add(this.lblsupperWhere);
            this.panel26.Controls.Add(this.label3);
            this.panel26.Dock = DockStyle.Fill;
            this.panel26.Location = new System.Drawing.Point(0, 0);
            this.panel26.Name = "panel26";
            this.panel26.Size = new Size(490, 0x1a);
            this.panel26.TabIndex = 1;
            this.lblsupperWhere.AutoSize = true;
            this.lblsupperWhere.Location = new System.Drawing.Point(0x1a2, 8);
            this.lblsupperWhere.Name = "lblsupperWhere";
            this.lblsupperWhere.Size = new Size(0, 12);
            this.lblsupperWhere.TabIndex = 1;
            this.lblsupperWhere.Visible = false;
            this.label3.AutoSize = true;
            this.label3.Dock = DockStyle.Right;
            this.label3.Location = new System.Drawing.Point(490, 0);
            this.label3.Name = "label3";
            this.label3.Size = new Size(0, 12);
            this.label3.TabIndex = 0;
            this.label3.Visible = false;
            this.panel31.Controls.Add(this.navigator_Page1);
            this.panel31.Dock = DockStyle.Right;
            this.panel31.Location = new System.Drawing.Point(490, 0);
            this.panel31.Name = "panel31";
            this.panel31.Size = new Size(0x1bd, 0x1a);
            this.panel31.TabIndex = 0;
            this.navigator_Page1.Dock = DockStyle.Bottom;
            this.navigator_Page1.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page1.Name = "navigator_Page1";
            this.navigator_Page1.PageSize = 20;
            this.navigator_Page1.RowCount = 0;
            this.navigator_Page1.Size = new Size(0x1bd, 0x12);
            this.navigator_Page1.TabIndex = 0;
            this.navigator_Page1.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page1_OnLoadViewStatus);
            this.panel24.Dock = DockStyle.Bottom;
            this.panel24.Location = new System.Drawing.Point(3, 0x1be);
            this.panel24.Name = "panel24";
            this.panel24.Size = new Size(0x3a7, 5);
            this.panel24.TabIndex = 11;
            this.panel21.Dock = DockStyle.Top;
            this.panel21.Location = new System.Drawing.Point(3, 0x25);
            this.panel21.Name = "panel21";
            this.panel21.Size = new Size(0x3a7, 8);
            this.panel21.TabIndex = 9;
            this.panel6.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel6.Controls.Add(this.panel28);
            this.panel6.Controls.Add(this.panel27);
            this.panel6.Controls.Add(this.panel29);
            this.panel6.Controls.Add(this.panel30);
            this.panel6.Dock = DockStyle.Top;
            this.panel6.Location = new System.Drawing.Point(3, 11);
            this.panel6.Name = "panel6";
            this.panel6.Size = new Size(0x3a7, 0x1a);
            this.panel6.TabIndex = 7;
            this.panel28.Controls.Add(this.btn_RiBaoPrint);
            this.panel28.Dock = DockStyle.Right;
            this.panel28.Location = new System.Drawing.Point(0x2f5, 3);
            this.panel28.Name = "panel28";
            this.panel28.Size = new Size(0x59, 20);
            this.panel28.TabIndex = 11;
            this.btn_RiBaoPrint.Dock = DockStyle.Right;
            this.btn_RiBaoPrint.Location = new System.Drawing.Point(14, 0);
            this.btn_RiBaoPrint.Name = "btn_RiBaoPrint";
            this.btn_RiBaoPrint.Size = new Size(0x4b, 20);
            this.btn_RiBaoPrint.TabIndex = 1;
            this.btn_RiBaoPrint.Text = "打 印";
            this.btn_RiBaoPrint.UseVisualStyleBackColor = true;
            this.btn_RiBaoPrint.Click += new EventHandler(this.btn_RiBaoPrint_Click);
            this.panel27.Controls.Add(this.btnSuppBuildExcel);
            this.panel27.Dock = DockStyle.Right;
            this.panel27.Location = new System.Drawing.Point(0x34e, 3);
            this.panel27.Name = "panel27";
            this.panel27.Size = new Size(0x59, 20);
            this.panel27.TabIndex = 10;
            this.btnSuppBuildExcel.Dock = DockStyle.Right;
            this.btnSuppBuildExcel.Location = new System.Drawing.Point(14, 0);
            this.btnSuppBuildExcel.Name = "btnSuppBuildExcel";
            this.btnSuppBuildExcel.Size = new Size(0x4b, 20);
            this.btnSuppBuildExcel.TabIndex = 0;
            this.btnSuppBuildExcel.Text = "生成报表";
            this.btnSuppBuildExcel.UseVisualStyleBackColor = true;
            this.btnSuppBuildExcel.Click += new EventHandler(this.btnSuppBuildExcel_Click);
            this.panel29.Dock = DockStyle.Bottom;
            this.panel29.Location = new System.Drawing.Point(0, 0x17);
            this.panel29.Name = "panel29";
            this.panel29.Size = new Size(0x3a7, 3);
            this.panel29.TabIndex = 1;
            this.panel30.Dock = DockStyle.Top;
            this.panel30.Location = new System.Drawing.Point(0, 0);
            this.panel30.Name = "panel30";
            this.panel30.Size = new Size(0x3a7, 3);
            this.panel30.TabIndex = 0;
            this.panel5.Dock = DockStyle.Top;
            this.panel5.Location = new System.Drawing.Point(3, 3);
            this.panel5.Name = "panel5";
            this.panel5.Size = new Size(0x3a7, 8);
            this.panel5.TabIndex = 6;
            this.tabPage3.Controls.Add(this.DataUserList);
            this.tabPage3.Controls.Add(this.panel42);
            this.tabPage3.Controls.Add(this.panel39);
            this.tabPage3.Controls.Add(this.panel38);
            this.tabPage3.Controls.Add(this.panel37);
            this.tabPage3.Controls.Add(this.panel15);
            this.tabPage3.Controls.Add(this.panel14);
            this.tabPage3.Location = new System.Drawing.Point(4, 0x15);
            this.tabPage3.Name = "tabPage3";
            this.tabPage3.Size = new Size(0x3ad, 0x1c6);
            this.tabPage3.TabIndex = 2;
            this.tabPage3.Text = "采购员统计";
            this.tabPage3.UseVisualStyleBackColor = true;
            this.DataUserList.AllowUserToAddRows = false;
            this.DataUserList.AllowUserToDeleteRows = false;
            style24.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style24.BackColor = Color.FromArgb(0xf9, 0xf9, 0xf9);
            this.DataUserList.AlternatingRowsDefaultCellStyle = style24;
            this.DataUserList.BackgroundColor = Color.WhiteSmoke;
            this.DataUserList.BorderStyle = BorderStyle.None;
            style25.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style25.BackColor = Color.White;
            style25.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style25.ForeColor = SystemColors.WindowText;
            style25.SelectionBackColor = SystemColors.Highlight;
            style25.SelectionForeColor = SystemColors.HighlightText;
            this.DataUserList.ColumnHeadersDefaultCellStyle = style25;
            this.DataUserList.Columns.AddRange(new DataGridViewColumn[] { this.UserId, this.UserName, this.MonthMoney1, this.YearMoney1, this.AllMoney1, this.CreateTime1 });
            style26.Alignment = DataGridViewContentAlignment.MiddleCenter;
            style26.BackColor = SystemColors.Window;
            style26.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style26.ForeColor = SystemColors.ControlText;
            style26.SelectionBackColor = SystemColors.Highlight;
            style26.SelectionForeColor = SystemColors.HighlightText;
            style26.WrapMode = DataGridViewTriState.False;
            this.DataUserList.DefaultCellStyle = style26;
            this.DataUserList.Dock = DockStyle.Fill;
            this.DataUserList.EnableHeadersVisualStyles = false;
            this.DataUserList.GridColor = Color.FromArgb(0xab, 0xb9, 0x9d);
            this.DataUserList.Location = new System.Drawing.Point(0, 0x2a);
            this.DataUserList.Name = "DataUserList";
            style27.Alignment = DataGridViewContentAlignment.BottomCenter;
            style27.BackColor = Color.White;
            style27.Font = new System.Drawing.Font("宋体", 9f, FontStyle.Regular, GraphicsUnit.Point, 0x86);
            style27.ForeColor = SystemColors.WindowText;
            style27.SelectionBackColor = SystemColors.Highlight;
            style27.SelectionForeColor = SystemColors.HighlightText;
            this.DataUserList.RowHeadersDefaultCellStyle = style27;
            style28.Alignment = DataGridViewContentAlignment.MiddleCenter;
            this.DataUserList.RowsDefaultCellStyle = style28;
            this.DataUserList.RowTemplate.Height = 0x17;
            this.DataUserList.Size = new Size(0x3ad, 0x173);
            this.DataUserList.TabIndex = 15;
            this.UserId.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.UserId.DataPropertyName = "UserId";
            this.UserId.HeaderText = "编号";
            this.UserId.Name = "UserId";
            this.UserId.Visible = false;
            this.UserName.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.UserName.DataPropertyName = "UserName";
            this.UserName.HeaderText = "员工姓名";
            this.UserName.Name = "UserName";
            this.MonthMoney1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.MonthMoney1.DataPropertyName = "MonthMoney";
            this.MonthMoney1.HeaderText = "单月采购金额";
            this.MonthMoney1.Name = "MonthMoney1";
            this.YearMoney1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.YearMoney1.DataPropertyName = "YearMoney";
            this.YearMoney1.HeaderText = "单年采购金额";
            this.YearMoney1.Name = "YearMoney1";
            this.AllMoney1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.AllMoney1.DataPropertyName = "AllMoney";
            this.AllMoney1.HeaderText = "总采购金额";
            this.AllMoney1.Name = "AllMoney1";
            this.CreateTime1.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
            this.CreateTime1.DataPropertyName = "CreateTime";
            this.CreateTime1.HeaderText = "最后采购金额";
            this.CreateTime1.Name = "CreateTime1";
            this.panel42.Dock = DockStyle.Bottom;
            this.panel42.Location = new System.Drawing.Point(0, 0x19d);
            this.panel42.Name = "panel42";
            this.panel42.Size = new Size(0x3ad, 10);
            this.panel42.TabIndex = 14;
            this.panel39.BackColor = Color.FromArgb(0xca, 0xc9, 0xce);
            this.panel39.Controls.Add(this.panel40);
            this.panel39.Controls.Add(this.panel41);
            this.panel39.Dock = DockStyle.Bottom;
            this.panel39.Location = new System.Drawing.Point(0, 0x1a7);
            this.panel39.Name = "panel39";
            this.panel39.Size = new Size(0x3ad, 0x1a);
            this.panel39.TabIndex = 13;
            this.panel40.Controls.Add(this.userlblWhere);
            this.panel40.Controls.Add(this.label4);
            this.panel40.Dock = DockStyle.Fill;
            this.panel40.Location = new System.Drawing.Point(0, 0);
            this.panel40.Name = "panel40";
            this.panel40.Size = new Size(0x1f0, 0x1a);
            this.panel40.TabIndex = 1;
            this.userlblWhere.AutoSize = true;
            this.userlblWhere.Location = new System.Drawing.Point(0x1a2, 8);
            this.userlblWhere.Name = "userlblWhere";
            this.userlblWhere.Size = new Size(0, 12);
            this.userlblWhere.TabIndex = 1;
            this.userlblWhere.Visible = false;
            this.label4.AutoSize = true;
            this.label4.Dock = DockStyle.Right;
            this.label4.Location = new System.Drawing.Point(0x1f0, 0);
            this.label4.Name = "label4";
            this.label4.Size = new Size(0, 12);
            this.label4.TabIndex = 0;
            this.label4.Visible = false;
            this.panel41.Controls.Add(this.navigator_Page2);
            this.panel41.Dock = DockStyle.Right;
            this.panel41.Location = new System.Drawing.Point(0x1f0, 0);
            this.panel41.Name = "panel41";
            this.panel41.Size = new Size(0x1bd, 0x1a);
            this.panel41.TabIndex = 0;
            this.navigator_Page2.Dock = DockStyle.Bottom;
            this.navigator_Page2.Location = new System.Drawing.Point(0, 8);
            this.navigator_Page2.Name = "navigator_Page2";
            this.navigator_Page2.PageSize = 20;
            this.navigator_Page2.RowCount = 0;
            this.navigator_Page2.Size = new Size(0x1bd, 0x12);
            this.navigator_Page2.TabIndex = 0;
            this.navigator_Page2.OnLoadViewStatus += new Navigator.LoadViewStatusHandler(this.navigator_Page2_OnLoadViewStatus);
            this.panel38.Dock = DockStyle.Bottom;
            this.panel38.Location = new System.Drawing.Point(0, 0x1c1);
            this.panel38.Name = "panel38";
            this.panel38.Size = new Size(0x3ad, 5);
            this.panel38.TabIndex = 12;
            this.panel37.Dock = DockStyle.Top;
            this.panel37.Location = new System.Drawing.Point(0, 0x22);
            this.panel37.Name = "panel37";
            this.panel37.Size = new Size(0x3ad, 8);
            this.panel37.TabIndex = 10;
            this.panel15.BackColor = Color.FromArgb(0xf6, 0xf6, 0xf6);
            this.panel15.Controls.Add(this.panel34);
            this.panel15.Controls.Add(this.panel33);
            this.panel15.Controls.Add(this.panel35);
            this.panel15.Controls.Add(this.panel36);
            this.panel15.Dock = DockStyle.Top;
            this.panel15.Location = new System.Drawing.Point(0, 8);
            this.panel15.Name = "panel15";
            this.panel15.Size = new Size(0x3ad, 0x1a);
            this.panel15.TabIndex = 8;
            this.panel34.Controls.Add(this.btn_PrintProMan);
            this.panel34.Dock = DockStyle.Right;
            this.panel34.Location = new System.Drawing.Point(0x2fb, 3);
            this.panel34.Name = "panel34";
            this.panel34.Size = new Size(0x59, 20);
            this.panel34.TabIndex = 11;
            this.btn_PrintProMan.Dock = DockStyle.Right;
            this.btn_PrintProMan.Location = new System.Drawing.Point(14, 0);
            this.btn_PrintProMan.Name = "btn_PrintProMan";
            this.btn_PrintProMan.Size = new Size(0x4b, 20);
            this.btn_PrintProMan.TabIndex = 1;
            this.btn_PrintProMan.Text = "打 印";
            this.btn_PrintProMan.UseVisualStyleBackColor = true;
            this.btn_PrintProMan.Click += new EventHandler(this.btn_PrintProMan_Click);
            this.panel33.Controls.Add(this.btn_BuildProMan);
            this.panel33.Dock = DockStyle.Right;
            this.panel33.Location = new System.Drawing.Point(0x354, 3);
            this.panel33.Name = "panel33";
            this.panel33.Size = new Size(0x59, 20);
            this.panel33.TabIndex = 10;
            this.btn_BuildProMan.Dock = DockStyle.Right;
            this.btn_BuildProMan.Location = new System.Drawing.Point(14, 0);
            this.btn_BuildProMan.Name = "btn_BuildProMan";
            this.btn_BuildProMan.Size = new Size(0x4b, 20);
            this.btn_BuildProMan.TabIndex = 0;
            this.btn_BuildProMan.Text = "生成报表";
            this.btn_BuildProMan.UseVisualStyleBackColor = true;
            this.btn_BuildProMan.Click += new EventHandler(this.btn_BuildProMan_Click);
            this.panel35.Dock = DockStyle.Bottom;
            this.panel35.Location = new System.Drawing.Point(0, 0x17);
            this.panel35.Name = "panel35";
            this.panel35.Size = new Size(0x3ad, 3);
            this.panel35.TabIndex = 1;
            this.panel36.Dock = DockStyle.Top;
            this.panel36.Location = new System.Drawing.Point(0, 0);
            this.panel36.Name = "panel36";
            this.panel36.Size = new Size(0x3ad, 3);
            this.panel36.TabIndex = 0;
            this.panel14.Dock = DockStyle.Top;
            this.panel14.Location = new System.Drawing.Point(0, 0);
            this.panel14.Name = "panel14";
            this.panel14.Size = new Size(0x3ad, 8);
            this.panel14.TabIndex = 7;
            this.panel9.Dock = DockStyle.Bottom;
            this.panel9.Location = new System.Drawing.Point(0, 0x1df);
            this.panel9.Name = "panel9";
            this.panel9.Size = new Size(0x3b5, 5);
            this.panel9.TabIndex = 3;
            this.pan_Rights.Dock = DockStyle.Right;
            this.pan_Rights.Location = new System.Drawing.Point(0x3bf, 10);
            this.pan_Rights.Name = "pan_Rights";
            this.pan_Rights.Size = new Size(10, 0x1e4);
            this.pan_Rights.TabIndex = 3;
            this.pan_Lefts.Dock = DockStyle.Left;
            this.pan_Lefts.Location = new System.Drawing.Point(0, 10);
            this.pan_Lefts.Name = "pan_Lefts";
            this.pan_Lefts.Size = new Size(10, 0x1e4);
            this.pan_Lefts.TabIndex = 2;
            this.pan_Bottoms.Dock = DockStyle.Bottom;
            this.pan_Bottoms.Location = new System.Drawing.Point(0, 0x1ee);
            this.pan_Bottoms.Name = "pan_Bottoms";
            this.pan_Bottoms.Size = new Size(0x3c9, 10);
            this.pan_Bottoms.TabIndex = 1;
            this.pane_TopT.Dock = DockStyle.Top;
            this.pane_TopT.Location = new System.Drawing.Point(0, 0);
            this.pane_TopT.Name = "pane_TopT";
            this.pane_TopT.Size = new Size(0x3c9, 10);
            this.pane_TopT.TabIndex = 0;
            this.pan_DockBottom.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockBottom.Dock = DockStyle.Bottom;
            this.pan_DockBottom.Location = new System.Drawing.Point(1, 0x1f8);
            this.pan_DockBottom.Name = "pan_DockBottom";
            this.pan_DockBottom.Size = new Size(0x3c9, 1);
            this.pan_DockBottom.TabIndex = 2;
            this.pan_DockRight.BackColor = Color.FromArgb(0xaf, 0xbf, 190);
            this.pan_DockRight.Dock = DockStyle.Right;
            this.pan_DockRight.Location = new System.Drawing.Point(970, 0);
            this.pan_DockRight.Name = "pan_DockRight";
            this.pan_DockRight.Size = new Size(1, 0x1f9);
            this.pan_DockRight.TabIndex = 1;
            this.pan_Top.Controls.Add(this.pan_ZhongJian);
            this.pan_Top.Controls.Add(this.pan_TopRight);
            this.pan_Top.Controls.Add(this.pan_TopLeft);
            this.pan_Top.Dock = DockStyle.Top;
            this.pan_Top.Location = new System.Drawing.Point(0, 0);
            this.pan_Top.Name = "pan_Top";
            this.pan_Top.Size = new Size(0x3cb, 0x20);
            this.pan_Top.TabIndex = 4;
            this.pan_ZhongJian.BackgroundImage = Resources.uc_title_2;
            this.pan_ZhongJian.Controls.Add(this.lblTitle);
            this.pan_ZhongJian.Dock = DockStyle.Fill;
            this.pan_ZhongJian.Location = new System.Drawing.Point(0x1f, 0);
            this.pan_ZhongJian.Name = "pan_ZhongJian";
            this.pan_ZhongJian.Size = new Size(0x3a7, 0x20);
            this.pan_ZhongJian.TabIndex = 2;
            this.lblTitle.AutoSize = true;
            this.lblTitle.BackColor = Color.FromArgb(0, 0, 15, 0xff);
            this.lblTitle.Font = new System.Drawing.Font("宋体", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0x86);
            this.lblTitle.ForeColor = Color.FromArgb(0x3b, 0x56, 20);
            this.lblTitle.Location = new System.Drawing.Point(6, 8);
            this.lblTitle.Name = "lblTitle";
            this.lblTitle.Size = new Size(0x77, 13);
            this.lblTitle.TabIndex = 0;
            this.lblTitle.Text = "采购信息分析统计";
            this.pan_TopRight.BackgroundImage = Resources.uc_title_1;
            this.pan_TopRight.Dock = DockStyle.Right;
            this.pan_TopRight.Location = new System.Drawing.Point(0x3c6, 0);
            this.pan_TopRight.Name = "pan_TopRight";
            this.pan_TopRight.Size = new Size(5, 0x20);
            this.pan_TopRight.TabIndex = 1;
            this.pan_TopLeft.BackgroundImage = Resources.uc_title;
            this.pan_TopLeft.Dock = DockStyle.Left;
            this.pan_TopLeft.Location = new System.Drawing.Point(0, 0);
            this.pan_TopLeft.Name = "pan_TopLeft";
            this.pan_TopLeft.Size = new Size(0x1f, 0x20);
            this.pan_TopLeft.TabIndex = 0;
            this.saveFileDialog.DefaultExt = "xls";
            this.saveFileDialog.Filter = "报表文件|*.xls";
            this.saveFileDialogSupp.DefaultExt = "xls";
            this.saveFileDialogSupp.Filter = "报表文件|*.xls";
            this.saveFileDialogProMan.DefaultExt = "xls";
            this.saveFileDialogProMan.Filter = "报表文件|*.xls";
            this.MyPrintDocument.PrintPage += new PrintPageEventHandler(this.MyPrintDocument_PrintPage);
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x3cb, 0x219);
            base.Controls.Add(this.pan_Dock);
            base.Controls.Add(this.pan_Top);
            base.FormBorderStyle = FormBorderStyle.None;
            base.MaximizeBox = false;
            base.MinimizeBox = false;
            base.Name = "FrmProcurementStatList";
            base.ShowInTaskbar = false;
            this.pan_Dock.ResumeLayout(false);
            this.pan_AllPanel.ResumeLayout(false);
            this.pan_AllPlanes.ResumeLayout(false);
            this.tabControl1.ResumeLayout(false);
            this.tabPage1.ResumeLayout(false);
            ((ISupportInitialize) this.DataGridList).EndInit();
            this.PlSearch.ResumeLayout(false);
            this.panel17.ResumeLayout(false);
            this.panel18.ResumeLayout(false);
            this.panel18.PerformLayout();
            this.panel22.ResumeLayout(false);
            this.panel22.PerformLayout();
            this.panel23.ResumeLayout(false);
            this.panel23.PerformLayout();
            this.panel10.ResumeLayout(false);
            this.panel12.ResumeLayout(false);
            this.panel12.PerformLayout();
            this.panel11.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel7.ResumeLayout(false);
            this.panel16.ResumeLayout(false);
            this.panel19.ResumeLayout(false);
            this.panel20.ResumeLayout(false);
            this.tabPage2.ResumeLayout(false);
            ((ISupportInitialize) this.DataGridListSuppList).EndInit();
            this.panel25.ResumeLayout(false);
            this.panel26.ResumeLayout(false);
            this.panel26.PerformLayout();
            this.panel31.ResumeLayout(false);
            this.panel6.ResumeLayout(false);
            this.panel28.ResumeLayout(false);
            this.panel27.ResumeLayout(false);
            this.tabPage3.ResumeLayout(false);
            ((ISupportInitialize) this.DataUserList).EndInit();
            this.panel39.ResumeLayout(false);
            this.panel40.ResumeLayout(false);
            this.panel40.PerformLayout();
            this.panel41.ResumeLayout(false);
            this.panel15.ResumeLayout(false);
            this.panel34.ResumeLayout(false);
            this.panel33.ResumeLayout(false);
            this.pan_Top.ResumeLayout(false);
            this.pan_ZhongJian.ResumeLayout(false);
            this.pan_ZhongJian.PerformLayout();
            base.ResumeLayout(false);
        }

        private void InitPage()
        {
            this.navigator_Page.PageSize = 0x11;
            this.navigator_Page.DataContainer = this.DataGridList;
            this.navigator_Page.Init();
            this.navigator_Page1.PageSize = 0x11;
            this.navigator_Page1.DataContainer = this.DataGridListSuppList;
            this.navigator_Page1.Init();
            this.navigator_Page2.PageSize = 0x11;
            this.navigator_Page2.DataContainer = this.DataUserList;
            this.navigator_Page2.Init();
        }

        protected void MyPrintDocument_PrintPage(object sender, PrintPageEventArgs e)
        {
            if (this.MyDataGridViewPrinter.DrawDataGridView(e.Graphics))
            {
                e.HasMorePages = true;
            }
        }

        private void navigator_Page_OnLoadViewStatus()
        {
            this.ProcurementLoad();
            this.navigator_Page.PageSize = 0x11;
            this.navigator_Page.DataContainer = this.DataGridList;
            this.navigator_Page.DataBind();
        }

        private void navigator_Page1_OnLoadViewStatus()
        {
            this.SuppDataLoad();
            this.navigator_Page1.PageSize = 0x11;
            this.navigator_Page1.DataContainer = this.DataGridListSuppList;
            this.navigator_Page1.DataBind();
        }

        private void navigator_Page2_OnLoadViewStatus()
        {
            this.UserDataLoad();
            this.navigator_Page2.PageSize = 0x11;
            this.navigator_Page2.DataContainer = this.DataUserList;
            this.navigator_Page2.DataBind();
        }

        private void ProcurementLoad()
        {
            try
            {
                System.Data.DataTable table = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page.PageCurrent;
                if (this.lblWhere.Text != "")
                {
                    table = ProcurementCommBuyBll.SelectData(0x11, pageCurrent, this.lblWhere.Text);
                }
                else
                {
                    table = ProcurementCommBuyBll.SelectData(0x11, pageCurrent, "");
                }
                int num2 = ProcurementCommBuyBll.SelectDataCount(this.lblWhere.Text);
                this.DataGridList.AutoGenerateColumns = false;
                this.DataGridList.DataSource = table;
                this.navigator_Page.DataSource = table;
                this.navigator_Page.RowCount = num2;
            }
            catch (Exception)
            {
            }
        }

        private bool SetupTheJinHuoTongJiPrinting()
        {
            PrintDialog dialog = new PrintDialog {
                AllowCurrentPage = false,
                AllowPrintToFile = false,
                AllowSelection = false,
                AllowSomePages = false,
                PrintToFile = false,
                ShowHelp = false,
                ShowNetwork = false
            };
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return false;
            }
            this.MyPrintDocument.DocumentName = "进货统计";
            this.MyPrintDocument.PrinterSettings = dialog.PrinterSettings;
            this.MyPrintDocument.DefaultPageSettings = dialog.PrinterSettings.DefaultPageSettings;
            this.MyPrintDocument.DefaultPageSettings.Margins = new Margins(30, 30, 30, 30);
            this.MyDataGridViewPrinter = new DataGridViewPrinter(this.DataGridList, this.MyPrintDocument, true, true, "进货统计", new System.Drawing.Font("宋体", 16f, FontStyle.Bold, GraphicsUnit.Point), Color.Black, true);
            return true;
        }

        private bool SetupTheProManPrinting()
        {
            PrintDialog dialog = new PrintDialog {
                AllowCurrentPage = false,
                AllowPrintToFile = false,
                AllowSelection = false,
                AllowSomePages = false,
                PrintToFile = false,
                ShowHelp = false,
                ShowNetwork = false
            };
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return false;
            }
            this.MyPrintDocument.DocumentName = "采购人员进货统计";
            this.MyPrintDocument.PrinterSettings = dialog.PrinterSettings;
            this.MyPrintDocument.DefaultPageSettings = dialog.PrinterSettings.DefaultPageSettings;
            this.MyPrintDocument.DefaultPageSettings.Margins = new Margins(30, 30, 30, 30);
            this.MyDataGridViewPrinter = new DataGridViewPrinter(this.DataUserList, this.MyPrintDocument, true, true, "采购人员进货统计", new System.Drawing.Font("宋体", 16f, FontStyle.Bold, GraphicsUnit.Point), Color.Black, true);
            return true;
        }

        private bool SetupTheSuppPrinting()
        {
            PrintDialog dialog = new PrintDialog {
                AllowCurrentPage = false,
                AllowPrintToFile = false,
                AllowSelection = false,
                AllowSomePages = false,
                PrintToFile = false,
                ShowHelp = false,
                ShowNetwork = false
            };
            if (dialog.ShowDialog() != DialogResult.OK)
            {
                return false;
            }
            this.MyPrintDocument.DocumentName = "供应商进货统计";
            this.MyPrintDocument.PrinterSettings = dialog.PrinterSettings;
            this.MyPrintDocument.DefaultPageSettings = dialog.PrinterSettings.DefaultPageSettings;
            this.MyPrintDocument.DefaultPageSettings.Margins = new Margins(30, 30, 30, 30);
            this.MyDataGridViewPrinter = new DataGridViewPrinter(this.DataGridListSuppList, this.MyPrintDocument, true, true, "供应商进货统计", new System.Drawing.Font("宋体", 16f, FontStyle.Bold, GraphicsUnit.Point), Color.Black, true);
            return true;
        }

        private void SuppDataLoad()
        {
            try
            {
                System.Data.DataTable table = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page1.PageCurrent;
                if (this.lblsupperWhere.Text != "")
                {
                    table = SupplierBll.SearchData(0x11, pageCurrent, this.lblsupperWhere.Text);
                }
                else
                {
                    table = SupplierBll.SearchData(0x11, pageCurrent, "");
                }
                int num2 = SupplierBll.SearchDataCount(this.lblsupperWhere.Text);
                this.DataGridListSuppList.AutoGenerateColumns = false;
                this.DataGridListSuppList.DataSource = table;
                this.navigator_Page1.DataSource = table;
                this.navigator_Page1.RowCount = num2;
            }
            catch (Exception)
            {
            }
        }

        private void SuppLoad()
        {
            this.drp_Supper.BeginUpdate();
            UserEnt loginUser = PublicAppliction.LoginUser;
            System.Data.DataTable list = SupplierBll.GetList("ChainNum=" + loginUser.ChainNum);
            this.drp_Supper.Items.Clear();
            foreach (DataRow row in list.Rows)
            {
                this.drp_Supper.AddItem(row["SupplierName"].ToString(), row["SupplierId"].ToString());
            }
            this.drp_Supper.EndUpdate();
        }

        private void UserDataLoad()
        {
            try
            {
                System.Data.DataTable table = new System.Data.DataTable();
                int pageCurrent = this.navigator_Page2.PageCurrent;
                if (this.lblsupperWhere.Text != "")
                {
                    table = UserBll.SearchData(0x11, pageCurrent, this.userlblWhere.Text);
                }
                else
                {
                    table = UserBll.SearchData(0x11, pageCurrent, "");
                }
                int num2 = GetTableColCount.ReturnTableColCount("Systems", "T_User", this.lblWhere.Text);
                this.DataUserList.AutoGenerateColumns = false;
                this.DataUserList.DataSource = table;
                this.navigator_Page2.DataSource = table;
                this.navigator_Page2.RowCount = num2;
            }
            catch (Exception)
            {
            }
        }
    }
}

